package com.xiaobai.server.feign;

import entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author yangdaji
 * @version 1.0
 * @Description:
 * @date 22-1-23 下午 11:00
 */
@FeignClient("user")
public interface UserService {

    /**
     * 根据用户id获取用户信息
     *
     * @param userid 用户id
     * @return
     */
    @RequestMapping("/user/getUser")
    List<User> getUser(@RequestParam("userId")  String userid);
}
